﻿using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
using Wlmy.Ids4.Model;
using Wlmy.Ids4.Model.Dto.CommonOutput;
using Wlmy.Ids4.Model.Dto.Role;
using Wlmy.Ids4.Model.Dto.UserClaim;
using Wlmy.Ids4.Services;

namespace Wlmy.Ids4.Controllers
{
    public class UserClaimController:ApiBaseController
    {
        private readonly IUserClaimServices _userClaimServices;

        public UserClaimController(IUserClaimServices userClaimServices)
        {
            _userClaimServices = userClaimServices;
        }
        [HttpGet]
        public async Task<PageRequestOutput<GetUserClaimListOutput>> GetClaimList([FromQuery]GetUserClaimListInput input)
        {
            return await _userClaimServices.GetClaimListAsync(input);
        }
    }
}
